package com.walker.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.walker.dao.AuthorDao;
import com.walker.entity.Author;
import com.walker.services.AuthorService;
/**
 * 
 * 作者： Walker
 *
 * 时间：2017年8月21日
 */
@Service("authorService")
public class AuthorServiceImpl implements AuthorService{
	
	
		@Autowired
	    private AuthorDao authorDao;
	 
	    @Override
	    public int add(Author author) {
	        return this.authorDao.add(author);
	    }
	 
	    @Override
	    public int update(Author author) {
	        return this.authorDao.update(author);      
	    }
	 
	    @Override
	    public int delete(Long id) {
	        return this.authorDao.delete(id);
	    }
	 
	    @Override
	    public Author findAuthor(Long id) {
	        return this.authorDao.findAuthor(id);
	    }
	 
	    @Override
	    public List<Author> findAuthorList() {
	        return this.authorDao.findAuthorList();
	    }
}
